﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZedGraph;

namespace erse253_homework
{
    public partial class ProportionalEffect : BaseWindowChart
    {

        public ProportionalEffect(double[] mean, double[] stdDevian)
        {
            InitializeComponent();
            base.ClearList();
            FormatScatterplot(mean, stdDevian, "Check for Proportional Effect", Color.Red);
        }

        private void FormatScatterplot(double[] x, double[] y, string name, Color color)
        {

            LineItem myCurve = new LineItem(name, x, y, color, SymbolType.Circle);

            myCurve.Line.IsVisible = false;
            myCurve.Symbol.Size = 3.0F;
            myCurve.Symbol.Fill = new Fill(color);

            base.AddItem(myCurve, name, "Mean", "Standard Deviation", name);
        }

    }
}
